package annotation.singleton

import java.util.Date

@Singleton(lazy = true)
class SingletonTestG2 {

	def initialDate

	// constructor
	private SingletonTestG2() {
		println "init"
		this.initialDate = new Date()
	}

	// member method
	def getInitialDate() { "Initialize Date: ${initialDate}"}
}
